package com.tomato.spring.basic.web.dataImport;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @program: knowledge-pooling
 * @ClassName InitializingStartBeanInit
 * @description: 项目启动时执行
 * @author: tomato
 * @create: 2024-07-07 20:12
 * @Version 1.0
 **/
@Component
@Slf4j
public class InitializingStartBeanInit implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("项目启动开始，开始初始化数据！");
//        CutePetImportUtil.importData();
        log.info("项目启动完成，初始化数据完成！");
    }
}
